﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Quexcel.OpenXML.Excel
{
    public class Address
    {
        public string cell;
        public int row;

        public Address(string address)
        {
            string[] output = Utils.Util.CellAddressPattern.Match(address).Result("${cell}:${row}").Split(':');
            cell = output[0];
            row = Int32.Parse(output[0]);
        }

        public Address()
        {
            
        }

        public override string ToString()
        {
            return cell + row;
        }
    }
}
